package org.glandais.profiler.beans;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

public class MethodTrace extends Trace {

	// private static final DateFormat DATE_TIME_INSTANCE = SimpleDateFormat
	// .getDateTimeInstance();

	public String called;
	public String type;
	public String signature;

	public List<MethodTrace> subMethods = new ArrayList<MethodTrace>();

	@Override
	public String toString() {
		SimpleDateFormat.getDateTimeInstance();
		StringBuilder sb = new StringBuilder("");
		// DATE_TIME_INSTANCE.format(startDateTime));
		sb.append(" - ").append(getDurationMillis()).append("ms - ").append(
				signature);
		return sb.toString();
	}

}
